package com.SpringRSSReader;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class splashscreen extends Activity {
	private static final String DEBUG_TAG="SPRING_TAG";
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash);
		Log.i(DEBUG_TAG,"Splash Create");
		Thread splashThread = new Thread() {
	        @Override
	        public void run() {
	           try {
	              int waited = 0;
	              while (waited < 5000) {
	                 sleep(50);
	                 waited += 50;
	              }
	           } catch (InterruptedException e) {
	              // do nothing
	           } finally {
	              finish();
	              Intent i = new Intent("com.SpringRSSReader.RSSMAIN");
	              startActivity(i);
	           }
	        }
	     };
	    splashThread.start();
	}
}
